package com.aba.cjms.app;

import java.util.Scanner;

import com.aba.cjms.admin.AdminDao;
import com.aba.cjms.student.StudentDao;
import com.aba.cjms.teacher.TeacherDao;

public class App {

	public static void main(String[] args) throws Exception {
		// TODO 自动生成的方法存根
		
		
	            
             System.out.println("欢迎使用");
             System.out.println("请选择登录模式");
             System.out.println("1.学生端 2.教师端 3.管理员端 4.退出");
             Scanner sc = new Scanner(System.in);
             int choice = sc.nextInt();
             switch(choice){ 
                 
                 case 1:
                     StudentDao.login();
                     break;
                     case 2:
                         TeacherDao.login();
                         break;
                         case 3:
                             AdminDao.main();
                             break;
                             case 4: 
                                 System.out.println("退出系统");
                                 System.exit(0);
                                 break;
                                 default: System.out.println("输入错误");
                                 System.out.println("请重新输入");
                                 main(args);
                                
             }

         
     }

	
}

